import
requestFun
from './apiConfig'
// import Qs from 'qs';

// 获查询楼明细
export function floorControllerSelectInfo(param) {
	return requestFun(`/building/floorController/selectInfo/${param}`, 'get').then(data => data)
}

// 设置销售和价格
export function floorHouseUpdate(param) {
	return requestFun('/building/floorHouseController/floorHouse/update', 'post', param, '', 1).then(data => data)
}

// 获取新房列表
export function getRecordsForNewCommunitys(param) {
	return requestFun('/yuezhudaiketong/yzNewHouseController/getRecordsForNewCommunitys', 'get', param, '', 2).then(data => data)
}

// 查询栋列表
export function selectList(param) {
	return requestFun('/building/floorController/selectList', 'post', param).then(data => data)
}

// 编辑楼信息
export function floorControllerUpdate(param) {
	return requestFun('/building/floorController/update', 'post', param).then(data => data)
}

// 删除
export function floorControllerDelete(param) {
	return requestFun(`/building/floorController/delete/${param}`, 'delete').then(data => data)
}

// 生成楼层模板
export function createFloorTemplate(param) {
	return requestFun('/building/floorTemplateController/createFloorTemplate', 'post', param).then(data => data)
}

// 生成楼层房间
export function createFloorHouse(param) {
	return requestFun('/building/floorHouseController/createFloorHouse', 'post', param).then(data => data)
}

// 楼栋号码列表
export function selectFloorAndUnit(param) {
	return requestFun('/building/floorController/selectFloorAndUnit', 'post', param).then(data => data)
}

// 复制楼信息
export function floorControllerCopy(param) {
	return requestFun('/building/floorController/copy', 'post', param).then(data => data)
}

// 添加楼信息
export function floorControllerAdd(param) {
	return requestFun('/building/floorController/add', 'post', param).then(data => data)
}

// // 合并
// export function combineFloor(param) {
// 	return requestFun('/building/floorHouseController/splitMergeHouse', 'post', param).then(data => data)
// }

// 添加
export function addFloor(param) {
	return requestFun('/building/floorController/add', 'post', param).then(data => data)
}

// 合并
export function mergeHouse(param) {
	return requestFun('/building/floorHouseController/mergeHouse', 'post', param).then(data => data)
}

// 拆分
export function splitHouse(param) {
	return requestFun('/building/floorHouseController/splitHouse', 'post', param).then(data => data)
}

// 修改基础信息
export function updateSaleInfo(param) {
	return requestFun('/building/floorHouseController/floorHouse/updateSaleInfo', 'post', param).then(data => data)
}

// 完成
export function buildingOk(param) {
 return requestFun(`/building/floorController/buildingOk?floorId=`+param.floorId, 'post', param).then(data => data)
}